package cn.detu.ln.service;

import cn.detu.ln.entity.Student;
import cn.detu.ln.utils.RestUtil;

/**
 * @author :ln
 * @version : 1.0
 * @Project : education_backend
 * @Package : cn.detu.ln.service
 * @ClassName : StudentService.java
 * @createTime : 2023/3/25 13:20
 * @Description :
 */
public interface StudentService {
    RestUtil selectAll();
    Student queryStudentByNum(Long stuNum);
    RestUtil studentDelete(Long stuNum);

    RestUtil studentUpdate(Student student);

    RestUtil studentInsert(Student student);
    // 按学生姓名实现分页查询
    RestUtil queryStudentByPage(Integer current, Integer rows, String search);
    // 按学生学号实现查询
    RestUtil queryStudentByStuNumPage(Integer current, Integer rows, String search);
    // 按学生班级实现查询
    RestUtil queryStudentByStuClassPage(Integer current, Integer rows, String search);
    // 实现登陆
    RestUtil login(Student student);
    // 实现修改密码功能
    RestUtil studentUpdatePwd(Student student,String newPwd);
    // 根据id查找
    RestUtil select(Long stuNum);
}

